namespace RefactoringFowlerNET
{
    // Price code constants changed to enum

	/// <summary>
	/// Price codes
	/// </summary>
	public enum PriceCodes
	{
		Regular,
		NewRelease,
		Childrens
	}
	/// <summary>
	/// Movie is just a simple data class.
	/// </summary>
	public class Movie
	{
		/* Fields */
		
		// Data members
		private readonly string _title;

	    /// <summary>
	    /// Movie take a title and pricecode
	    /// </summary>
	    /// <param name="title"></param>
	    /// <param name="priceCode"></param>
		public Movie(string title, PriceCodes priceCode)
		{
			_title = title;
			PriceCode = priceCode;
		}

		/* Properties */
	    public PriceCodes PriceCode { get; set; }

	    public string Title
		{
			get {return _title;}
		}
	}
}
